package com.yishun.springboot.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yishun.springboot.pojo.TbMenu;

@Mapper
public interface TbMenuMapper {

	Integer addMenu(@Param("menuList") List<Map<String, Object>> menuList,
			@Param("userNamerOrRoleId") String userNamerOrRoleId);

	Integer getTbMenuPermission(Integer menuId);

	Integer addTbMenu(TbMenu tbMenu);

	String findByPermissionId(@Param("menuId") Integer menuId);

	Integer delMenu(@Param("id") Integer id);
}
